package com.caolei1992.web.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * <p>
 * com.xbuding.blog.exception
 * </p>
 *
 * @author xbuding
 * @since 2019/3/31
 */
@Getter
public class TokenException extends RuntimeException {

    private Integer status = -9001;

    public TokenException(String msg) {
        super(msg);
    }

    public TokenException(HttpStatus status, String msg) {
        super(msg);
        this.status = status.value();
    }

}
